package org.millioncall.yueyoga.admin.model.base;

import org.millioncall.yueyoga.admin.model.Member;

@SuppressWarnings("serial")
public class BaseRemaining implements java.io.Serializable {
	private Member member;
	private Double remaining;
	private Integer score;
	private Integer memberId;
	
	public BaseRemaining(){
		
	}

	public BaseRemaining(Member member, Double remaining, Integer score) {
		this.member = member;
		this.remaining = remaining;
		this.score = score;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Double getRemaining() {
		if (remaining == null) {
			return 0.0;
		} else {
			return remaining;
		}
	}

	public void setRemaining(Double remaining) {
		this.remaining = remaining;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}
}
